import { system as http } from '@zh/common-utils/http'

export { http }

/**
 * 查询列表
 * @param {Object} params
 */
export function getJobList (params) {
  return http.post('/system/SysJobRank/list', params)
}

/**
 * 查询列表分页
 * @param {Object} params
 */
export function getJobPage (params) {
  return http.post('/system/SysJobRank/page', params)
}

/**
 * 删除
 * @param {String} id
 */
export function deleteJobById (id) {
  return http.get('/system/SysJobRank/del/' + id)
}

/**
 * 修改或保存
 * @param {Object} params
 */
export function saveOrUpdateJobInfo (data) {
  const url = '/system/SysJobRank/save'
  return http.post(url, data)
}

/**
 * 根据id返回信息
 * @param {String} id
 */
export function getJobInfoById (id) {
  return http.get('/system/SysJobRank/getById/' + id)
}

/**
 * 获取最大排序号，每个排序号 +5
 */
export function getOrderNo () {
  return http.get('/system/SysJobRank/getOrderNo')
}

export function getJobRanklist () {
  return http.get('/system/SysJobRank/getJobRanklist')
}
